<template>
    <Person ref="per"/>
    <button @click="show">测试</button>
</template>

<script setup>
    import Person from './components/Person.vue'
    import {ref} from 'vue'

    let per = ref()

    function show() {
        console.log(per.value.name)
        console.log(per.value.age)
    }
</script>
